﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="Noticias.aspx.cs" Inherits="MakeIT.Deo.Apresentacao.Noticias" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat='server'>
    <style type="text/css">
        dl.calendar {
	        margin: 0px;
	        padding: 0px;
        }

        dl.calendar dt {
	        float: left;
	        clear: left;
	        width: 46px;
	        height: 47px;
	        background: url('App_Themes/Padrao/imagens/masterPage/calendar.gif') no-repeat left top;
        }

        dl.calendar dd {
	        margin: 0px 0px 10px 60px;
	        padding: 5px;
	        background: #f0f0ff;
	        min-height: 37px;
	        text-align: left;
	        border:solid 1px #c0c0ff;
        }

        dl.calendar .month {
	        display: block;
	        padding: 5px 5px 0px 0px;
	        text-align: right;
	        font-size: 10px;
	        color: #585858;
        }

        dl.calendar .day {
	        display: block;
	        padding: 0px 0px 0px 10px;
	        text-align: center;
	        font-size: 18px;
	        color: #FF7D1B;
        }
        
    </style>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
        <asp:Repeater ID="RepeaterNoticias" runat="server">
            <HeaderTemplate>
                <table border="0" cellspacing="3" width="100%">
            </HeaderTemplate>

            <ItemTemplate>
                <tr>
                    <td>
                        <dl class="calendar">
					        <dt><span class="month"> <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataVigenciaInicio")).ToString("MMM") %> </span>
					            <span class="day"> <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataVigenciaInicio")).ToString("dd")%> </span>
					        </dt>
					        <dd>
					            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl=<%# "~/Noticia.aspx?idNoticia="+ Eval("idNoticia")%> >
                                        <strong><%# ((DateTime)Eval("DataVigenciaInicio")).ToString("dd.MM") %></strong> - 
                                        <%# Eval("Titulo")%>
                                    </asp:HyperLink>
					        </dd>
                        </dl>
                    </td>
                </tr>
            </ItemTemplate>

            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    <br />&nbsp;
</asp:Content>
